package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-09-12 15:26
 */
@Mapper
public interface ArticleHomeMapper {
    IPage<ApArticle> load(IPage<ApArticle> page,
                         @Param("size") Integer size,
                         @Param("tag") String tag,
                         @Param("maxBehotTime") Date maxBehotTime,
                         @Param("minBehotTime") Date minBehotTime,
                         @Param("loadType") Short loadType);

    List<ApArticle> loadArticleByPublishTime(@Param("time") Date publishTime);

}
